<?php
    require('common.php');
	
    // Error check
	if(!isset($_GET['msg']) or !isset($_GET['link']) or !isset($_GET['linkmsg']))
        throw new Exception('Bad request.');
	
    // Write page
    $page = new HtmlPage();
    $page->writeHeader(lang('MESSAGE_PAGENAME'));
    $page->write('<div class="content">');
    $page->write('<h2>'.lang('MESSAGE_PAGENAME').'</h2>');
	$page->write('<p>'.htmlEscape($_GET['msg']).'</p>');
    $page->write('<p><a href="'.htmlEscape($_GET['link']).'">'.htmlEscape($_GET['linkmsg']).'</a></p>');
    $page->write('</div>');
    $page->writeFooter();
?>
